import request from '@/utils/request'

export function selectChart(query) {
  return request({
    url: '/binance/monitoring/chart',
    method: 'get',
    params: query
  })
}

export function selectMacd15(query) {
  return request({
    url: '/binance/monitoring/macd15',
    method: 'get',
    params: query
  })
}

// 查询日均价监控列表
export function listMonitoring(query) {
  return request({
    url: '/binance/monitoring/list',
    method: 'get',
    params: query
  })
}

// 查询日均价监控详细
export function getMonitoring(code) {
  return request({
    url: '/binance/monitoring/' + code,
    method: 'get'
  })
}

// 新增日均价监控
export function addMonitoring(data) {
  return request({
    url: '/binance/monitoring',
    method: 'post',
    data: data
  })
}

// 修改日均价监控
export function updateMonitoring(data) {
  return request({
    url: '/binance/monitoring',
    method: 'put',
    data: data
  })
}

// 删除日均价监控
export function delMonitoring(code) {
  return request({
    url: '/binance/monitoring/' + code,
    method: 'delete'
  })
}
